#!/bin/bash
cd ..
sudo apt install iozone3
#cd ./src/current/
echo "修改/data/testfile为系统中空闲空间最大的目录："
iozone -a -i 0 -i 1 -i 2 -f /data/testfile/data -r 16m -s 8G | tee -a ../../iozone.log
iozone -a -i 0 -i 1 -i 2 -f /data/testfile/data -r 16m -s 16G | tee -a ../../iozone.log
iozone -a -i 0 -i 1 -i 2 -f /data/testfile/data -r 16m -s 32G | tee -a ../../iozone.log
iozone -a -i 0 -i 1 -i 2 -i 3 -i 4 -i 5 -i 6 -i 7 -r 16m -s 100M | tee -a ../../iozone2.log
iozone -a -i 0 -i 1 -i 2 -i 3 -i 4 -i 5 -i 6 -i 7 -r 16m -s 500M | tee -a ../../iozone2.log
iozone -a -i 0 -i 1 -i 2 -i 3 -i 4 -i 5 -i 6 -i 7 -r 16m -s 1G | tee -a ../../iozone2.log
